package com.batchengine.task;

import com.batchengine.Definitions;

/**
 * Created by  solutions
 * Author: sunil.incubator@yahoo.com
 * Date: Aug 7, 2009
 */
public class TaskInfo {

    private Long taskId;
    private String clazzName;
    private String selctorClazz;
    private String signalClazz;

    private Definitions.TaskType taskType;

    protected TaskInfo(Long taskId) {
        this.taskId = taskId;
    }

    public Long getTaskId() {
        return taskId;
    }

    protected void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Definitions.TaskType getTaskType() {
        return taskType;
    }

    public void setTaskType(Definitions.TaskType taskType) {
        this.taskType = taskType;
    }

    public String getClazzName() {
        return clazzName;
    }

    protected void setClazzName(String clazzName) {
        this.clazzName = clazzName;
    }

    public String getSelctorClazz() {
        return selctorClazz;
    }

    protected void setSelctorClazz(String selctorClazz) {
        this.selctorClazz = selctorClazz;
    }

    public String getSignalClazz() {
        return signalClazz;
    }

    protected void setSignalClazz(String signalClazz) {
        this.signalClazz = signalClazz;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("TaskInfo");
        sb.append("{taskId=").append(taskId);
        sb.append(", taskType=").append(taskType);
        sb.append(", clazzName='").append(clazzName).append('\'');
        sb.append(", selctorClazz='").append(selctorClazz).append('\'');
        sb.append(", signalClazz='").append(signalClazz).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
